package com.ljy.crawler.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 * 京东商品表
 * </p>
 *
 * @author liangjiayy
 * @since 2022-01-25
 */
@TableName("jd_item")
@ApiModel(value = "JdItem对象", description = "京东商品表")
@Data
@ToString
public class JdItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品集合id")
    private Long spu;

    @ApiModelProperty("商品最小品类单元id")
    private Long sku;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品价格")
    private Double price;

    @ApiModelProperty("商品图片")
    private String pic;

    @ApiModelProperty("商品详细地址")
    private String url;

    @ApiModelProperty("创建时间")
    private Date created;

    @ApiModelProperty("更新时间")
    private Date updated;

}
